/*
 * Edge.h
 *
 *  Created on: May 26, 2012
 *      Author: hugo
 */

#ifndef EDGE_H_
#define EDGE_H_
#include "Vertex.h"
class Edge {
public:
	Edge(int,Vertex *i,Vertex *j,float);
	virtual ~Edge();
	float get_cost();
	void set_cost(float);
	int get_i();
	int get_id();
	int get_j();
	float get_min_prize();
	float get_sum_prize();
	void lock();
	void unlock();
	bool is_locked();
	void set_id(int);
private:
	int id;
	Vertex *v_i,*v_j;
	float cost;
	bool locked;
};

#endif /* EDGE_H_ */
